package com.ncs.pojo;

import java.util.Date;

/**
 * @program: demo1
 * @description:
 * @author: Tan Gang
 * @create: 2021-08-07 18:02
 **/

public class Emp {
    private Integer empId;
    private String empName;
    private String empNo;
    private Date entryDate;
    private String jobTile;


    public void sleep(){
        System.out.println(this.empName+"正在睡觉...");
    }

    public void eat(){
        System.out.println(this.empName+"正在吃饭...");
    }


    public Emp(){

    }

    public Emp(Integer empId, String empName, String empNo, Date entryDate, String jobTile) {
        this.empId = empId;
        this.empName = empName;
        this.empNo = empNo;
        this.entryDate = entryDate;
        this.jobTile = jobTile;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "empId=" + empId +
                ", empName='" + empName + '\'' +
                ", empNo='" + empNo + '\'' +
                ", entryDate=" + entryDate +
                ", jobTile='" + jobTile + '\'' +
                '}';
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getEmpNo() {
        return empNo;
    }

    public void setEmpNo(String empNo) {
        this.empNo = empNo;
    }

    public Date getEntryDate() {
        return entryDate;
    }

    public void setEntryDate(Date entryDate) {
        this.entryDate = entryDate;
    }

    public String getJobTile() {
        return jobTile;
    }

    public void setJobTile(String jobTile) {
        this.jobTile = jobTile;
    }
}
